summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/storage_accessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/storage_accessor.h')
-rw-r--r--src/core/hle/service/am/storage_accessor.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/core/hle/service/am/storage_accessor.h b/src/core/hle/service/am/storage_accessor.h
new file mode 100644
index 000000000..b9aa85a66
--- /dev/null
+++ b/src/core/hle/service/am/storage_accessor.h
@@ -0,0 +1,37 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/am/storage.h"
+#include "core/hle/service/service.h"
+
+namespace Service::AM {
+
+class IStorageAccessor final : public ServiceFramework<IStorageAccessor> {
+public:
+ explicit IStorageAccessor(Core::System& system_, std::shared_ptr<LibraryAppletStorage> impl_);
+ ~IStorageAccessor() override;
+
+private:
+ void GetSize(HLERequestContext& ctx);
+ void Write(HLERequestContext& ctx);
+ void Read(HLERequestContext& ctx);
+
+ const std::shared_ptr<LibraryAppletStorage> impl;
+};
+
+class ITransferStorageAccessor final : public ServiceFramework<ITransferStorageAccessor> {
+public:
+ explicit ITransferStorageAccessor(Core::System& system_,
+ std::shared_ptr<LibraryAppletStorage> impl_);
+ ~ITransferStorageAccessor() override;
+
+private:
+ void GetSize(HLERequestContext& ctx);
+ void GetHandle(HLERequestContext& ctx);
+
+ const std::shared_ptr<LibraryAppletStorage> impl;
+};
+
+} // namespace Service::AM